package com.atguigu.spzx.common.util;

import com.atguigu.spzx.model.entity.system.SysUser;

/**
 * @author syh
 * @create 2023-08-15 13:12
 */
public class LoginAuthUtil {
    public static final ThreadLocal<SysUser> threadLocal=new ThreadLocal<>();

    public static void set(SysUser sysUser){
          threadLocal.set(sysUser);
    }
    public static SysUser get(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }

}
